package com.training.web.repository;

import com.training.bean.AppVersion;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WebAppVersionRepository extends JpaRepository<AppVersion, Integer> {
    /**
     * 获取所有App版本，按版本号降序排列
     * @return App版本列表
     */
    List<AppVersion> findAllByOrderByVersionCodeDesc();
}